// const BaseModel = require('../../blog/model/base.js');
module.exports = class extends think.Model {
// module.exports = class extends BaseModel {
  // 模型关联
  get relation() {
    return {
      parent: {
        type: think.Model.BELONG_TO,
        model: 'comment', // 数据库表的名称，不含表的前缀think_
        key: 'parent_id',
        fKey: 'id'
      }
    };
  }
};
